package com.timbrungardt.running.entities;

import java.sql.Time;
import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;

import org.apache.tapestry5.PersistenceConstants;
import org.apache.tapestry5.annotations.InjectComponent;
import org.apache.tapestry5.annotations.OnEvent;
import org.apache.tapestry5.annotations.Persist;
import org.apache.tapestry5.annotations.Property;
import org.apache.tapestry5.beaneditor.NonVisual;
import org.apache.tapestry5.beaneditor.Validate;
import org.apache.tapestry5.corelib.components.Zone;

import com.timbrungardt.running.data.Rating;
import com.timbrungardt.running.data.Weather;

import fr.exanpe.t5.lib.components.Slider;

@Entity
public class Run
{
  @Id
  @GeneratedValue(strategy = GenerationType.IDENTITY)
  @NonVisual
  public Long id;

  //public Title title;

  @Validate("required,regexp")
  public String startTime;

  @Validate("required,regexp")
  public String endTime;

  @Validate("required")
  public String distance;

  @Validate("required,regexp")
  public String zip;
  
  @Validate("required")
  public Date date;
  
  //public Weather weather;
  
  //public String temperature;
  
  //public String calories;
  

  public String totalTime;
  

  public String speed;
  
  
  /**
   * Later on we can quickly add additional fields and data to capture, but for now
   * just stick to the basics.
   */
  

}
